-- GENERATED SPELL FOR [Grimungous] --


function spell0_8215(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_8215', 605, 1)
end

function spell1_8215(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_8215', 5338, 1)
end

function Sorts_8215(pUnit, Event)
local choix_sorts_8215 = math.random(0, 1)
if choix_sorts_8215 == 0 then
pUnit:RegisterEvent('spell0_8215', 1, 1)
end
if choix_sorts_8215 == 1 then
pUnit:RegisterEvent('spell1_8215', 1, 1)
end
end

function mob8215_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8215', math.random(1500, 3000), 1)
end

function mob8215_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8215_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8215_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8215, 1, 'mob8215_Action')
RegisterUnitEvent(8215, 2, 'mob8215_Leave')
RegisterUnitEvent(8215, 3, 'mob8215_Kill')
RegisterUnitEvent(8215, 4, 'mob8215_Die')
